﻿#region C# Libraries

using System.Collections.Generic;

#endregion

#region XNA Libraries

using Microsoft.Xna.Framework;

#endregion

#region SDK Libraries

using main.sdk.audio;
using main.sdk.display;
using main.sdk.display.object2d;
using main.sdk.input;
using Microsoft.Xna.Framework.Input;

#endregion

namespace main.src.game
{
    /**
     * Classe que controla o time.
     */
    public sealed class Game_Team
    {
        #region Public Variables

        public readonly Game_Field ParentField = null;

        #endregion

        #region Private Variables

        private List<Game_Rod> _Rods      = new List<Game_Rod>();

        #endregion

        #region Public Members

        /**
         * Construtor do Game_Rod.
         */
        public Game_Team(Game_Field Parent)
        {
            ParentField = Parent;
        }

        /**
         * Adiciona uma vara.
         */
        public void AddRod(Game_Rod Rod)
        {
            _Rods.Add(Rod);
        }

        /**
         * Atualiza o time todo.
         */
        public void Update(double Time)
        {
            /* Atualiza cada vara */
            foreach (Game_Rod Rod in _Rods)
            {
                Rod.Update(Time);
            }
        }

        #endregion
    }
}